Stored Procedures [dbo].[asi_DocumentPathByHierarchyKey]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@hierarchyKeyuniqueidentifier16
@publishedOnlybit1
SQL Script
-- Given a HierarchyKey returns the full path to the document starting with the root name.  The path is in
-- slash notation.  Like $/Common/Business Objects/DocumentType
CREATE PROCEDURE [dbo].[asi_DocumentPathByHierarchyKey]
   @hierarchyKey uniqueidentifier,
   @publishedOnly bit = 0
AS
BEGIN
DECLARE
   @path nvarchar(4000)

   EXEC asi_DocumentPathByHierarchyKeyOut @hierarchyKey, @path OUT, 0, @publishedOnly

   SELECT @path AS Path
END

GO
Uses